package com.healthcloud.service.PatientRecord.impl;

import com.healthcloud.dao.PatientRecord.MedicalCheckDao;
import com.healthcloud.entity.PatientRecord.MedicalCheckEntity;
import com.healthcloud.service.PatientRecord.MedicalCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("medicalCheckService")
@Transactional
public class MedicalCheckServiceImpl implements MedicalCheckService {
	@Autowired
	private MedicalCheckDao medicalCheckDao;
	
	@Override
	public MedicalCheckEntity queryObject(Integer id){
		return medicalCheckDao.queryObject(id);
	}
	
	@Override
	public void save(MedicalCheckEntity medicalCheck){
		medicalCheckDao.save(medicalCheck);
	}
	
	@Override
	public void update(MedicalCheckEntity medicalCheck){
		medicalCheckDao.update(medicalCheck);
	}
	
	@Override
	public void delete(Integer id){
		medicalCheckDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		medicalCheckDao.deleteBatch(ids);
	}

	@Override
	public List<MedicalCheckEntity> queryByIdCard(MedicalCheckEntity entity, PageParam pageParam) {
		return medicalCheckDao.queryByIdCard(entity, pageParam);
	}

	@Override
	public int countByIdCard(MedicalCheckEntity entity) {
		return medicalCheckDao.countByIdCard(entity);
	}
}
